<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
                <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
                <title></title>
                <link rel="stylesheet" href="__PUBLIC__/Css/bootstrap.min.css" />
                <link rel="stylesheet" href="__PUBLIC__/Css/main.css" />
                <link rel="stylesheet" href="__PUBLIC__/Css/common.css" />
                <jquery/>
                <script type="text/javascript" src="__PUBLIC__/Js/node.js"></script>
        </head>
        <body>
                <div class="container-fluid">
                        <div class="row-fluid">
                                <div class="span12">
                                        <table class="table table-bordered table-hover">
                                                <thead>
                                                        <tr pid="0">
                                                                <th>
                                                                        节点ID
                                                                </th>
                                                                <th>
                                                                        节点名称
                                                                </th>
                                                                <th>
                                                                        层级
                                                                </th>
                                                                <th>
                                                                        操作
                                                                </th>
                                                        </tr>
                                                </thead>
                                                <tbody>
                                                        <foreach from="$data" value="$v">
                                                                <tr class="info" pid='{$v.pid}' nid='{$v.nid}'>
                                                                        <td>
                                                                                <a href='javascript:;' class="plus"></a>
                                                                                <a href='javascript:;' class="minus"></a>
                                                                                {$v.nid}
                                                                        </td>
                                                                        <td>
                                                                                {$v._name}
                                                                        </td>
                                                                        <td>
                                                                                {$v.level}
                                                                        </td>
                                                                        <td>
                                                                                <a href='{|U:"Access/addSonNode",array("pid"=>$v["nid"])}' class='btn btn-primary'>添加子节点</a>
                                                                                <a href="{|U:'Access/delNode', array('nid' => $v['nid'])}" class="btn btn-danger"><i class="icon-trash icon-white"></i>&nbsp;删除</a>
                                                                        </td>
                                                                </tr>
                                                                
                                                        </foreach>
                                                </tbody>
                                        </table>
                                </div>
                        </div>
                </div>
        </body>

</html>